SEVER=server
CLIENT=client
CC=g++

all:$(SEVER) $(CLIENT)
$(SEVER):servercalc.cc
	$(CC) -o $@ $^ -ljsoncpp -std=c++11 
$(CLIENT):clientcalc.cc
	$(CC) -o $@ $^ -ljsoncpp -std=c++11
	
.PHONY:clean
clean:
	rm -f $(SEVER) $(CLIENT)

#编译时-D选项，可以直接定义宏